package com.alex.entity;

import java.util.HashSet;
import java.util.Set;



// default package

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private int userid;
	private String username;
	private String password;
	private String sex;
	private Integer age;
	private Set<Tip> tips = new HashSet<Tip>();
	public Set<Tip> getTips() {
		return tips;
	}

	public void setTips(Set<Tip> tips) {
		this.tips = tips;
	}

	public Set<Reply> getReplys() {
		return replys;
	}

	public void setReplys(Set<Reply> replys) {
		this.replys = replys;
	}

	private Set<Reply> replys = new HashSet<Reply>();
	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String username, String password, String sex) {
		this.username = username;
		this.password = password;
		this.sex = sex;
	}
	public User(int userid,String username){
		this.userid=userid;
		this.username=username;
	}

	/** full constructor */
	public User(String username, String password, String sex, Integer age) {
		this.username = username;
		this.password = password;
		this.sex = sex;
		this.age = age;
	}

	// Property accessors
	
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

}